<extend name="Base/ucenter"/>

<block name="style">
    <link href="__CSS__/usercenter.css" rel="stylesheet" type="text/css"/>
    <link href="__ZUI__/lib/datetimepicker/datetimepicker.css" rel="stylesheet" type="text/css">
</block>
<block name="header">
    <br/>
</block>
<block name="content">
    <script type="application/javascript">
        // 切换菜单
        active("myproducts");
    </script>

    <table class="table">
        <thead>
        <tr>
            <th>序号</th>
            <th>标题</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="row">
            <tr>
                <td>{$i}</td>
                <th>{$row.title}</th>
                <th>{$row.created_time|date='Y-m-d H:i:s',###}</th>
                <th>操作</th>
            </tr>
        </volist>
        </tbody>
        <tfoot>
        </tfoot>
    </table>
    <ul class="pager">
        <li class="previous"><a href="{:U('Product/Index/mylist')}?page=1">首页</a></li>
        <if condition="$page neq 1">
            <li class="previous"><a href="{:U('Product/Index/mylist')}?page={$page-1}">上一页</a></li>
        </if>
        <if condition="$page gt 5">
            <li><a href="{:U('Product/Index/mylist')}?page={$page-5}">{$page-5}</a></li>
        </if>
        <if condition="$page gt 4">
            <li><a href="{:U('Product/Index/mylist')}?page={$page-4}">{$page-4}</a></li>
        </if>
        <if condition="$page gt 3">
            <li><a href="{:U('Product/Index/mylist')}?page={$page-3}">{$page-3}</a></li>
        </if>
        <if condition="$page gt 2">
            <li><a href="{:U('Product/Index/mylist')}?page={$page-2}">{$page-2}</a></li>
        </if>
        <if condition="$page gt 1">
            <li><a href="{:U('Product/Index/mylist')}?page={$page-1}">{$page-1}</a></li>
        </if>
        <li class="active"><a href="{:U('Product/Index/mylist')}&page={$page}">{$page}</a></li>
        <if condition="$totalpage gt $page">
            <li><a href="{:U('Product/Index/mylist')}&page={$page+1}">{$page+1}</a></li>
        </if>
        <if condition="$totalpage gt $page+1">
            <li><a href="{:U('Product/Index/mylist')}&page={$page+2}">{$page+2}</a></li>
        </if>
        <if condition="$totalpage gt $page+2">
            <li><a href="{:U('Product/Index/mylist')}&page={$page+4}">{$page+3}</a></li>
        </if>
        <if condition="$totalpage gt $page+3">
            <li><a href="{:U('Product/Index/mylist')}&page={$page+4}">{$page+4}</a></li>
        </if>
        <if condition="$totalpage gt $page+4">
            <li><a href="{:U('Product/Index/mylist')}&page={$page+5}">{$page+5}</a></li>
        </if>
        <if condition="$page neq $totalpage">
            <li class="next"><a href="{:U('Product/Index/mylist')}&page={$page+1}">下一页</a></li>
        </if>
        <li class="next"><a href="{:U('Product/Index/mylist')}&page={$totalpage}">尾页</a></li>
    </ul>

    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <link href="__CORE_CSS__/form_check.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__CORE_JS__/form_check.js"></script>
    <script type="text/javascript" src="__ZUI__/lib/datetimepicker/datetimepicker.min.js"></script>
    <script>

        $('.time').datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 0,
            forceParse: 0,
            format: 'yyyy-mm-dd hh:ii'
        });

        $('.time_d').datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 2,
            forceParse: 0,
            format: 'yyyy-mm-dd'
        });
    </script>
</block>

